package org.itark.bbs.common.constants.enums;

/**
 * @author nerokey
 */

public enum UserErrorEnum implements IErrors {

    /**
     * 失败
     */
    FAILED(99999, "系统错误", "2"),

    /**
     * 成功
     */
    SUCCESS(20000, "执行成功", "1"),
    ;

    UserErrorEnum(int code, String message, String key) {
        this.code = code;
        this.message = message;
        this.key = key;
    }

    private int code;
    private String message;
    private String key;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public String getKey() {
        return key;
    }
}
